import { MockMethod } from "vite-plugin-mock";
const url = "/api/v1/menus/routes";
const method = "get";
const data = {
  code: "00000",
  data: [
    {
      path: "/system",
      component: "Layout",
      redirect: "/system/user",
      meta: {
        title: "后台编辑",
        icon: "system",
        hidden: false,
        menuHidden: false,
        roles: ["ADMIN"],
        keepAlive: true,
      },
      children: [
        {
          path: "user",
          component: "system/user/index",
          name: "User",
          meta: {
            title: "用户管理",
            icon: "user",
            hidden: false,
            roles: ["ADMIN"],
            keepAlive: true,
          },
        },
        {
          path: "role",
          component: "system/role/index",
          name: "Role",
          meta: {
            title: "角色管理",
            icon: "role",
            hidden: false,
            roles: ["ADMIN"],
            keepAlive: true,
          },
        },
        {
          path: "dept",
          component: "system/dept/index",
          name: "Dept",
          meta: {
            title: "部门管理",
            icon: "tree",
            hidden: false,
            roles: ["ADMIN"],
            keepAlive: true,
          },
        },
        // {
        //   path: "tab",
        //   component: "system/tab/index",
        //   name: "tab",
        //   meta: {
        //     title: "表格封装",
        //     icon: "tree",
        //     hidden: false,
        //     roles: ["ADMIN"],
        //     keepAlive: true,
        //   },
        // },
        // {
        //   path: "menu",
        //   component: "system/menu/index",
        //   name: "Menu",
        //   meta: {
        //     title: "菜单管理",
        //     icon: "menu",
        //     hidden: false,
        //     roles: ["ADMIN"],
        //     keepAlive: true,
        //   }, 
        // },
        // {
        //   path: "dict",
        //   component: "system/dict/index",
        //   name: "DictType",
        //   meta: {
        //     title: "字典管理",
        //     icon: "dict",
        //     hidden: false,
        //     roles: ["ADMIN"],
        //     keepAlive: true,
        //   },
        // },
      ],
    },
    {
      path: "/multi-level",
      component: "Layout",
      redirect: "/multi-level/multi-level1",
      meta: {
        title: "运营报表",
        icon: "role",
        hidden: false,
        menuHidden: true,
        roles: ["ADMIN"],
        keepAlive: true,
      },
      // children: [
      //   {
      //     path: "multi-level1",
      //     component: "demo/multi-level/level1",
      //     redirect: "/multi-level/multi-level2",
      //     meta: {
      //       title: "菜单一级",
      //       icon: "",
      //       hidden: false,
      //       roles: ["ADMIN"],
      //       keepAlive: true,
      //     },
      //     children: [
      //       {
      //         path: "multi-level2",
      //         component: "demo/multi-level/children/level2",
      //         redirect: "/multi-level/multi-level2/multi-level3-1",
      //         meta: {
      //           title: "菜单二级",
      //           icon: "",
      //           hidden: false,
      //           roles: ["ADMIN"],
      //           keepAlive: true,
      //         },
      //         children: [
      //           {
      //             path: "multi-level3-1",
      //             component: "demo/multi-level/children/children/level3-1",
      //             name: "MultiLevel31",
      //             meta: {
      //               title: "菜单三级-1",
      //               icon: "",
      //               hidden: false,
      //               roles: ["ADMIN"],
      //               keepAlive: true,
      //             },
      //           },
      //           {
      //             path: "multi-level3-2",
      //             component: "demo/multi-level/children/children/level3-2",
      //             name: "MultiLevel32",
      //             meta: {
      //               title: "菜单三级-2",
      //               icon: "",
      //               hidden: false,
      //               roles: ["ADMIN"],
      //               keepAlive: true,
      //             },
      //           },
      //         ],
      //       },
      //     ],
      //   },
      // ],
    },
    {
      path: "/custom-level",
      component: "Layout",
      redirect: "/custom-level/custom-level1",
      meta: {
        title: "自定义平台",
        icon: "role",
        hidden: false,
        menuHidden: true,
        roles: ["ADMIN"],
        keepAlive: true,
      },
      // children: [
      //   {
      //     path: "custom-level1",
      //     component: "demo/custom-level/level1",
      //     redirect: "/custom-level/custom-level2",
      //     meta: {
      //       title: "菜单一级",
      //       icon: "",
      //       hidden: false,
      //       roles: ["ADMIN"],
      //       keepAlive: true,
      //     },
      //     children: [
      //       {
      //         path: "custom-level2",
      //         component: "demo/custom-level/children/level2",
      //         redirect: "/custom-level/custom-level2/custom-level3-1",
      //         meta: {
      //           title: "菜单二级",
      //           icon: "",
      //           hidden: false,
      //           roles: ["ADMIN"],
      //           keepAlive: true,
      //         },
      //         children: [
      //           {
      //             path: "custom-level3-1",
      //             component: "demo/custom-level/children/children/level3-1",
      //             name: "customLevel31",
      //             meta: {
      //               title: "菜单三级-1",
      //               icon: "",
      //               hidden: false,
      //               roles: ["ADMIN"],
      //               keepAlive: true,
      //             },
      //           },
      //           {
      //             path: "custom-level3-2",
      //             component: "demo/custom-level/children/children/level3-2",
      //             name: "Level32",
      //             meta: {
      //               title: "菜单三级-2",
      //               icon: "",
      //               hidden: false,
      //               roles: ["ADMIN"],
      //               keepAlive: true,
      //             },
      //           },
      //         ],
      //       },
      //     ],
      //   },
      // ],
    },

  

  ],
  msg: "一切ok",
};

export default [
  {
    url: url,
    method: method,
    response: () => {
      return data;
    },
  },
] as MockMethod[];
